package chapter4;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description:  判断是元音还是辅音
 * Date:2021/4/2
 * ***************************************************************
 */
public class exc4_13 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		System.out.print("Enter a letter:");
		//直接一句读入单个字符
		char ch=input.next().charAt(0);
		
		if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z') {
			if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||
					ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U') {
				System.out.println(ch+" is a vowel.");
			}else {
				System.out.println(ch+" is a consonant.");
			}
			
		}else {
			System.out.print(ch+" is a invalid input.\n");
		}
		
	}

}
